package com.android.juguotang.fragment.member;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import com.android.juguotang.R;
import com.android.juguotang.fragment.BaseLazyFragment;
import com.android.juguotang.model.ajaxcartCallback;
import com.android.juguotang.model.ajaxcartdata;
import com.android.juguotang.utils.ConstantsUrl;
import com.android.juguotang.utils.HttpUtils;
import com.android.juguotang.utils.MyLog;

import butterknife.BindView;
import butterknife.ButterKnife;
import okhttp3.Call;

public class Fragment_Mine_Accounts_detail extends BaseLazyFragment {


    private FragmentActivity mcontext;
    private View view;

    public Fragment_Mine_Accounts_detail() {

    }
    public static Fragment_Mine_Accounts_detail newInstance(String price) {
        Fragment_Mine_Accounts_detail fragment = new Fragment_Mine_Accounts_detail();
        Bundle args = new Bundle();
//        args.putString(ARG_PARAM1, price);
        fragment.setArguments(args);
        return fragment;
    }



    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    private boolean isCheck = true;

    @Override
    protected void initPrepare() {


    }

    @Override
    protected void onInvisible() {

    }

    @Override
    protected void initData() {
        String address = ConstantsUrl.domain + "member/accountdetail";
        HttpUtils.get(address, null, new ajaxcartCallback() {
            @Override
            public void onError(Call call, Exception e, int id) {
//                MyLog.e("inest","Exception="+e.getMessage());
            }

            @Override
            public void onResponse(ajaxcartdata response, int id) {
//                MyLog.e("inest","onResponse=");
            }
        });

    }

    @Override
    protected View initView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_mine_accounts_detail, container, false);
        ButterKnife.bind(this, view);
        mcontext = getActivity();
//       WebView webview_accounts_detail=(WebView) view.findViewById(R.id.webview_accounts_detail);
//String path="http://www.tbfresh.cn/member/accountdetail";
//        webview_accounts_detail.loadUrl(path);
        return view;
    }


}
